package com.lu.service.impl;

import com.lu.mapper.TyppesMapper;
import com.lu.pojo.Types;
import com.lu.service.TypesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypesServiceImpl implements TypesService {
    @Autowired
    private TyppesMapper typpesMapper;
    @Override
    public List<Types> getTypes() {
        List<Types> types = typpesMapper.getTypes ( );
        return types;
    }

    @Override
    public int delTy(Integer tid) {
        int i = typpesMapper.delTy ( tid );
        return i;
    }

    @Override
    public int updataTy(Types types) {
        int i = typpesMapper.updataTy ( types );
        return i;
    }

    @Override
    public int addTy(Types types) {
        int i = typpesMapper.addTy ( types );

        return i;
    }
}
